#ifndef QWAVECHARTVIEW_H
#define QWAVECHARTVIEW_H
#include <QtCharts/QChartView>
#include <QtCharts/QLineSeries>
#include <QtCharts/QSplineSeries>

#include <QList>
QT_CHARTS_USE_NAMESPACE

class QWaveChartView: public QChartView
{
    Q_OBJECT
public:
    QWaveChartView();
    void paintLine(QList<QList<QPointF>>& pts);
private:
    void wheelEvent(QWheelEvent *event);
    void mouseMoveEvent(QMouseEvent *event);

    qlonglong m_max;
    QPoint m_pt;
    QChart *m_chart;
    QList<QLineSeries*> *m_line_series;
    QSplineSeries *m_spline_series;
};

#endif // QWAVECHARTVIEW_H
